package com.clwl.supervise.superviseapp.service.baobao;


import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.clwl.supervise.superviseapp.entity.supervise.AdsBaobShareSupTaskDetailEntity;
import com.clwl.supervise.superviseapp.entity.supervise.AdsBaobShareSupTaskEntity;
import com.clwl.supervise.superviseapp.mapper.supervise.AdsBaobShareSupTaskMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;

@Service
@DS("ads")
public class AdsBaobShareSupTaskService extends ServiceImpl<AdsBaobShareSupTaskMapper, AdsBaobShareSupTaskEntity> {


    @Resource
    private AdsBaobShareSupTaskMapper adsBaobShareSupTaskMapper;


    public List<AdsBaobShareSupTaskEntity> findList(String entUniqueCode){
        return adsBaobShareSupTaskMapper.findList(entUniqueCode);
    }


    public List<AdsBaobShareSupTaskDetailEntity> findDetailList(String yearInfo, String taskId){
        return adsBaobShareSupTaskMapper.findDetailList(yearInfo,taskId);
    }

    @Override
    public AdsBaobShareSupTaskEntity getById(Serializable id) {
        return super.getById(id);
    }
}
